import request from '@/utils/request'

export default {
    //获取成绩列表
    getScoreList() {
        return request({
            url: `/study/coursescore/getScores`,
            method: 'get',
        })
    },



    //根据课程id获取成绩列表
    getScoreListByCousesId() {
        return request({
            url: `/study/coursescore/getScoreList/${coursesId}`,
            method: 'get',
        })
    },
    //根据课程id查询课程分段信息
    getCoursePieceById(courseId) {
        return request({
            url: `/study/coursescore/getScorePiece/${courseId}`,
            method: "get",
        })
    },


    //分页条件查询成绩信息
    getScoreListPages(page, limit, searchObj) {
        return request({
            url: `/study/coursescore/getScoresPages/${page}/${limit}`,
            method: "get",
            data: searchObj
        })
    },


    exportAudit() {
        return request({
            url: '/study/coursescore/exportExcel',
            method: 'get',
            responseType: 'blob',
        })
    }

}


